#pragma once

#include <map>
#include <string>

#include "Node.h"

template<class T>
class VKResPool
{
public:
	VKResPool(void){}
	virtual ~VKResPool(void)
	{

	}

	T Get(const char* strKey)
	{
		return m_Pool[strKey];
	}

	long Put(const char* strKey, T pObject)
	{
		if(Get(strKey)) return FALSE;

		m_Pool[strKey] = pObject;
		return TRUE;
	}

	std::map<std::string , T> m_Pool;
};
